package indi.caibo.service_edu.controller.front.clinet;

import indi.caibo.commonutils.vo.UcenterMemberPay;
import indi.caibo.service_edu.controller.front.clinet.impl.UCenterFileDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Bo Cai
 * @version 1.0
 * @date 2021/12/12 10:06
 */
@FeignClient(name = "service-ucenter", fallback = UCenterFileDegradeFeignClient.class)
@Component
public interface UCenterClient {
    //根据用户id获取用户信息
    @GetMapping("/ucenter-service/member/{id}")
    public UcenterMemberPay getInfo(@PathVariable String id);
}
